// 防抖函数
let debounce = function(fn) {
    let timer = null;
    return function() {
        clearTimeout(timer)
        timer = setTimeout(function() {
            fn()
        }, 2000)
    }
}
export default debounce